package com.sdy.rc.api;

import com.sdy.common.model.Response;
import com.sdy.rc.api.model.DemoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "rc")
public interface DemoApi {
    @GetMapping(value = "/api/auth/userInfo")
    Response<DemoDto> userInfo(@RequestParam("userId") Integer userId);
}
